import java.util.ArrayList;
import java.util.List;
public class ShoppingCart {
private double totalPrice;
private List<Goods> goods = new ArrayList<Goods>();
public void add(List Goods,Goods goodstemp){
	Goods.add(goodstemp);
}
public void delete(List Goods,Goods goodstemp){
	Goods.remove(goodstemp);
}
public void clear(List Goods,Goods goodstemp){
	Goods.clear();
}
public void pay(){
	System.out.println("you should pay "+totalPrice);
}
public void draw(){
	for(Goods e:goods){
		if (e != null)
			 e.draw();
	}
}
}
